package cn.itcast.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@ContentRowHeight(20)//数据行高度
@HeadRowHeight(20)//表头高度
@ExcelIgnoreUnannotated
public class ShippingOrderVo {

    @ExcelProperty("发票号 Invoice No.")
    private String packingId;                //集装箱编号
    private String orderType;                //运输方式
    @ExcelProperty("货主 Shipper")
    private String shipper;                  //货主
    @ExcelProperty("提单抬头 Consignee")
    private String consignee;                //提单抬头
    @ExcelProperty("正本通知人 Orignal Notify Party")
    private String notifyParty;              //正本通知人
    @ExcelProperty("信用证 L/C No.")
    private String lcNo;                     //信用证
    @ExcelProperty("装船港 Port of Loading")
    private String portOfLoading;            //装运港
    @ExcelProperty("卸货港 Port of Discharge")
    private String portOfDischarge;          //卸货港
    @ExcelProperty("运输要求 Special Condition")
    private String specialCondition;         //运输要求

    private Long state;//状态

    @ExcelProperty("时间 Date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date loadingDate;                //装船日期

    @ExcelProperty("Marks and Nos")
    private String marks;

    @ExcelProperty("GrossWeight")
    private BigDecimal grossWeight;        //毛重

    @ExcelProperty("Measurement")
    private BigDecimal measurement;        //尺寸

    public String getMarks() {
        return marks;
    }

    public void setMarks(String marks) {
        this.marks = marks;
    }

    public BigDecimal getGrossWeight() {
        return grossWeight;
    }

    public void setGrossWeight(BigDecimal grossWeight) {
        this.grossWeight = grossWeight;
    }

    public BigDecimal getMeasurement() {
        return measurement;
    }

    public void setMeasurement(BigDecimal measurement) {
        this.measurement = measurement;
    }

    public Date getLoadingDate() {
        return loadingDate;
    }

    public void setLoadingDate(Date loadingDate) {
        this.loadingDate = loadingDate;
    }

    public String getPackingId() {
        return packingId;
    }

    public void setPackingId(String packingId) {
        this.packingId = packingId;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getShipper() {
        return shipper;
    }

    public void setShipper(String shipper) {
        this.shipper = shipper;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getNotifyParty() {
        return notifyParty;
    }

    public void setNotifyParty(String notifyParty) {
        this.notifyParty = notifyParty;
    }

    public String getLcNo() {
        return lcNo;
    }

    public void setLcNo(String lcNo) {
        this.lcNo = lcNo;
    }

    public String getPortOfLoading() {
        return portOfLoading;
    }

    public void setPortOfLoading(String portOfLoading) {
        this.portOfLoading = portOfLoading;
    }

    public String getPortOfDischarge() {
        return portOfDischarge;
    }

    public void setPortOfDischarge(String portOfDischarge) {
        this.portOfDischarge = portOfDischarge;
    }

    public String getSpecialCondition() {
        return specialCondition;
    }

    public void setSpecialCondition(String specialCondition) {
        this.specialCondition = specialCondition;
    }

    public Long getState() {
        return state;
    }

    public void setState(Long state) {
        this.state = state;
    }

}
